package com.example.domain.dto.product;

import com.example.domain.entity.enums.ProductStatus;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 创建商品请求DTO
 * 
 * @author Means
 * @since 2025-10-27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CreateProductRequest {
    
    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空")
    @Size(max = 100, message = "商品名称长度不能超过100个字符")
    private String name;
    
    /**
     * 商品分类
     */
    @Size(max = 50, message = "商品分类长度不能超过50个字符")
    private String category;
    
    /**
     * 商品描述
     */
    private String description;
    
    /**
     * 商品状态（可选，默认为ACTIVE）
     */
    private ProductStatus status;
}

